//
//  UIButton+TransitionEdgeInsets.m
//  LYLazizDevelopDemo
//
//  Created by xbn_iMac on 2016/11/10.
//  Copyright © 2016年 XBN. All rights reserved.
//

#import "UIButton+TransitionEdgeInsets.h"

@implementation UIButton (TransitionEdgeInsets)

- (void)setNormalImageEdgeInsets:(UIEdgeInsets)imageEdgeInsets {
    if ([[LZLanguageManager shareInstance] getLanguageType] == LanguageType_Ar) {
        self.imageEdgeInsets = UIEdgeInsetsMake(imageEdgeInsets.top, imageEdgeInsets.right, imageEdgeInsets.bottom, imageEdgeInsets.left);
    }
    else {
        self.imageEdgeInsets = UIEdgeInsetsMake(imageEdgeInsets.top, imageEdgeInsets.left, imageEdgeInsets.bottom, imageEdgeInsets.right);
    }    
}

@end
